﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GmaWebService.Interfaces;
using GmaWebService;

namespace GmaWebservice.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            GmaWebService.MediaAccessService service = new GmaWebService.MediaAccessService();
            System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
            sw.Start();
            var musicList = service.GetAllAlbums(SortBy.Name, OrderBy.Asc);
            sw.Stop();
            //foreach (WebMusicAlbum movie in musicList)
            //{
            //    Console.WriteLine(movie.Title + " " + movie.Year);
            //}
            Console.WriteLine(sw.ElapsedMilliseconds);
            sw.Reset();
            sw.Start();
            

             musicList = service.GetAllAlbums(SortBy.Name, OrderBy.Asc);
            sw.Stop();
            Console.WriteLine(sw.ElapsedMilliseconds);
            Console.Read();

        }
    }
}
